setPlaybackSpeed

abstract fun setPlaybackSpeed(block: DesignBlock, speed: Float)

Sets the playback speed multiplier of a block that supports playback control. Note: This also adjusts the trim and duration of the block. Video fills running faster than 3.0x are force muted until reduced to 3.0x or below.

Parameters

block

the block or video fill to update.

speed

The desired playback speed multiplier. Valid range is 0.25, 3.0 for audio blocks and [0.25, infinity) for video fills.